package com.netscenery.yang.writer;

public final class YangFormatter {
	private String Indentation ;
	private String endWith;
	private int columnSize = 80;//default column size,0 indicates no care column size
	
	public static final String YANG_FORMAT_TAB = "\t";
	public static final String YANG_FORMAT_FOURSPACES = "    ";
	public static final String YANG_FORMAT_TWOSPACES= "  ";
	public static final String YANG_FORMAT_ONEPACE= " ";
	public static final String YANG_FORMAT_CRLF="\n";
	
	public YangFormatter(){
		Indentation = YANG_FORMAT_TAB;
		endWith = YANG_FORMAT_CRLF;
	}
	
	public void setTraditionalFormatter(){
		this.Indentation = YANG_FORMAT_FOURSPACES;
		this.endWith = YANG_FORMAT_CRLF;
	}
	
	public void setPrettyFormatter(){
		this.Indentation = YANG_FORMAT_TWOSPACES;
		this.endWith = YANG_FORMAT_CRLF;		
	}

	/**
	 * @return the columnSize
	 */
	public int getColumnSize() {
		return columnSize;
	}

	/**
	 * @param columnSize the columnSize to set
	 */
	public void setColumnSize(int columnSize) {
		this.columnSize = columnSize;
	}

	public String getIndentation() {
		return Indentation;
	}


	public String getEndWith() {
		return endWith;
	}

}
